package com.ims.core.doc.service.impl;

import java.util.List;
import com.ims.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ims.core.doc.mapper.TInAccountingQueryNonInvoiceMapper;
import com.ims.core.doc.domain.TInAccountingQueryNonInvoice;
import com.ims.core.doc.service.ITInAccountingQueryNonInvoiceService;

/**
 * 非增值税发票报账单查询Service业务层处理
 *
 * @author IMS
 * @date 2024-12-03
 */
@Service
public class TInAccountingQueryNonInvoiceServiceImpl implements ITInAccountingQueryNonInvoiceService
{
    @Autowired
    private TInAccountingQueryNonInvoiceMapper tInAccountingQueryNonInvoiceMapper;

    /**
     * 查询非增值税发票报账单查询
     *
     * @param id 非增值税发票报账单查询主键
     * @return 非增值税发票报账单查询
     */
    @Override
    public TInAccountingQueryNonInvoice selectTInAccountingQueryNonInvoiceById(Long id)
    {
        return tInAccountingQueryNonInvoiceMapper.selectTInAccountingQueryNonInvoiceById(id);
    }

    /**
     * 查询非增值税发票报账单查询列表
     *
     * @param tInAccountingQueryNonInvoice 非增值税发票报账单查询
     * @return 非增值税发票报账单查询
     */
    @Override
    public List<TInAccountingQueryNonInvoice> selectTInAccountingQueryNonInvoiceList(TInAccountingQueryNonInvoice tInAccountingQueryNonInvoice)
    {
        return tInAccountingQueryNonInvoiceMapper.selectTInAccountingQueryNonInvoiceList(tInAccountingQueryNonInvoice);
    }

    /**
     * 新增非增值税发票报账单查询
     *
     * @param tInAccountingQueryNonInvoice 非增值税发票报账单查询
     * @return 结果
     */
    @Override
    public int insertTInAccountingQueryNonInvoice(TInAccountingQueryNonInvoice tInAccountingQueryNonInvoice)
    {
        tInAccountingQueryNonInvoice.setCreateTime(DateUtils.getNowDate());
        return tInAccountingQueryNonInvoiceMapper.insertTInAccountingQueryNonInvoice(tInAccountingQueryNonInvoice);
    }

    /**
     * 修改非增值税发票报账单查询
     *
     * @param tInAccountingQueryNonInvoice 非增值税发票报账单查询
     * @return 结果
     */
    @Override
    public int updateTInAccountingQueryNonInvoice(TInAccountingQueryNonInvoice tInAccountingQueryNonInvoice)
    {
        tInAccountingQueryNonInvoice.setUpdateTime(DateUtils.getNowDate());
        return tInAccountingQueryNonInvoiceMapper.updateTInAccountingQueryNonInvoice(tInAccountingQueryNonInvoice);
    }

    /**
     * 批量删除非增值税发票报账单查询
     *
     * @param ids 需要删除的非增值税发票报账单查询主键
     * @return 结果
     */
    @Override
    public int deleteTInAccountingQueryNonInvoiceByIds(Long[] ids)
    {
        return tInAccountingQueryNonInvoiceMapper.deleteTInAccountingQueryNonInvoiceByIds(ids);
    }

    /**
     * 删除非增值税发票报账单查询信息
     *
     * @param id 非增值税发票报账单查询主键
     * @return 结果
     */
    @Override
    public int deleteTInAccountingQueryNonInvoiceById(Long id)
    {
        return tInAccountingQueryNonInvoiceMapper.deleteTInAccountingQueryNonInvoiceById(id);
    }
}
